package com.jianz.campus_markets.mapper;


import com.jianz.campus_markets.domain.entity.SensitiveWord;
import com.jianz.campus_markets.domain.entity.SensitiveWordExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SensitiveWordMapper {

    int countByExample(SensitiveWordExample example);

    int deleteByExample(SensitiveWordExample example);

    int deleteByPrimaryKey(List<Long> id);

    int insert(SensitiveWord record);

    int insertSelective(SensitiveWord record);

    List<SensitiveWord> selectByExample(SensitiveWordExample example);


    SensitiveWord selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sensitive_word
     *
     * @mbggenerated Wed May 17 13:04:13 CST 2023
     */
    int updateByExampleSelective(@Param("record") SensitiveWord record, @Param("example") SensitiveWordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sensitive_word
     *
     * @mbggenerated Wed May 17 13:04:13 CST 2023
     */
    int updateByExample(@Param("record") SensitiveWord record, @Param("example") SensitiveWordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sensitive_word
     *
     * @mbggenerated Wed May 17 13:04:13 CST 2023
     */
    int updateByPrimaryKeySelective(SensitiveWord record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sensitive_word
     *
     * @mbggenerated Wed May 17 13:04:13 CST 2023
     */
    int updateByPrimaryKey(SensitiveWord record);

    List<SensitiveWord> selectPage();

    int saveBatch(@Param("list") List<SensitiveWord> sensitiveWordList);
}